package com.tledu.proxy;

import java.lang.reflect.Proxy;

public class Main {
    public static void main(String[] args) {
        ISinger target = new Cai();
        Broker broker = new Broker(target);

        ISinger proxy = (ISinger) Proxy.newProxyInstance(target.getClass().getClassLoader(), new Class[]{ISinger.class}, broker);
        proxy.jump();
    }
}
